home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15826 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  734 b 

  1. Path: nova.np.ac.sg!news
  2. From: nbk@titan.np.ac.sg (Ng Beng Kiat)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: How get application directory in Win95?
  5. Date: 8 Apr 1996 18:30:53 +0800
  6. Organization: Ngee Ann Polytechnic, Singapore
  7. Message-ID: <4kapsu$2t3@titan.np.ac.sg>
  8. References: <3168cca8.89931566@news.demon.co.uk>
  9. NNTP-Posting-Host: titan.np.ac.sg
  10. NNTP-Posting-User: nbk
  11.  
  12. Martin McKean <martin@mckean.demon.co.uk> wrote:
  13. >When an Win95 application is running, how can I find the directory
  14. >path it is stored in so that data files can be written to it?
  15. >
  16. GetModuleFileName() returns full path name of executable. Its directory path
  17. can be easily extracted.
  18.  
  19. -- 
  20. | Ng BengKiat                         |
  21. | (ALPHA Centre/NgeeAnn Poly/Singapore) |
  22.